#from pokemon import Pokemon
class Equipment:
    def __init__(self,name,description,attack:int,defense:int,speed:int,equip_type:str,image_path:str):
        self.name=name
        self.description=description
        self.attack=attack
        self.defense=defense
        self.speed=speed
        self.image_path=image_path
        self.equip_type= equip_type
        self.is_equipped=False

def create_equipment():
    return{
        "sword":Equipment("sword","attack:+20,defense:-10,speed:5",200,-100,50,"attack","data/image/sword.png"),
        "shield":Equipment("shield","attack:-10,defense:+30,speed:-5",-100,300,-50,"defense","data/image/shield.png"),
        "HP injection":Equipment("HP injection","attack:0,defense:0,speed:30",0,0,300,"speed","data/image/HP injection.png"),
        "magic ring":Equipment("magic ring","attack:+30,defense:0,speed:0",300,0,0,"attack","data/image/magic ring.png"),
        "potion":Equipment("potion","attack:+20,defense:+20,speed:+20",200,200,200,"all","data/image/potion.png")
    }

#如果实例在另一个文件中
# from equipment import create_equipment
equipment_dict=create_equipment()
potion=equipment_dict["potion"]
print(f"装备名称：{potion.name},攻击属性；{potion.attack}")